<?php

/*
 *
 * BEGIN center_column_content.php
 *
 *
 * Dazzler Center Column HTML Content
 * @Description: The class creates all the UIs and html for the center column of different pages of dazzler
 * @Authors: Salman, Wits University
 * @Copyright: © Wits University 2011 - All Rights Reserved
 * @License: BSD License (http://www.linfo.org/bsdlicense.html)
 *
 *
 * BEGIN CHANGELOG
 * Developers working on thee files are REQUIRED to maintain this CHANGELOG.
 * Please ensure you follow the Changelog Guidelines: http://code.google.com/p/dazzler/wiki/DazzlerDevelopGuideline?ts=1315476570&updated=DazzlerDevelopGuideline
 * !==================================================================================================================================================================
 *
 * VERSION 1.0.0
 * 	+ File Created, Salman, 20 September 2011
 *
 * ==================================================================================================================================================================!
 * END CHANGELOG
 */


/* * *****************************************************************************************************************************************************************
 *
 * BEGIN Direct Call Check
 *
  /***************************************************************************************************************************************************************** */
global $doNotCallThisScriptDirectly;
if ($doNotCallThisScriptDirectly != 1) {
    /* Read the ini language file */
    $ini_lang_array = array();
    $clientlang = explode(",", strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']));
    $lang_ini_array = (file_exists("lang/" . trim($clientlang[0]) . ".ini")) ? parse_ini_file("lang/" . trim($clientlang[0]) . ".ini", true) : parse_ini_file("lang/en.ini", true);
    die($lang_ini_array['ERRORS']['doNotCallThisScriptDirectly']);
}
/* * *****************************************************************************************************************************************************************
 *
 * END Direct Call Check
 *
  /***************************************************************************************************************************************************************** */

class center_column_content extends baseClass {

    private $htmlelementsbuilder;
    private $parsesiteconfig;

    public function __construct() {
        $this->htmlelementsbuilder = new htmlelementsbuilder();
        $this->parsesiteconfig = new parsesiteconfig();
        parent::parseLanguageErrorLogFile();
    }

    /**
     * \brief Builds html content for the center column on the main page
     * return Return one side link item
     */
    private function buildMainCenterColumnContent() {
        $welcomeHeading = new htmlcodemaker('h2');
        $welcomeHeading->set('text', "Welcome to Dazzler");
        $mainCenterColumnContent = $welcomeHeading->output();

        $welcomeText = new htmlcodemaker('text');
        $welcomeText->set('text', "Dazzler is a software system which will allow you to view live ball-by-ball cricket scores, statistics and commentary.
            This software is named after Dazzler the Zebra which was the official mascot of the 2003 ICC World Cup
held in South Africa.
");

        $welcomeSignUpLink = new htmlcodemaker('a');
        $welcomeSignUpLink->set('href', '#register');
        $welcomeSignUpLink->set("class", "dazzler_registration_link");
        $welcomeSignUpLink->set("text", "Sign up now - it's <strong>FREE</strong> to join!");
        //$welcomeSignUpLink->output();

        $welcomeParagraph = new htmlcodemaker('p');
        $welcomeParagraph->inject(array($welcomeText, $welcomeSignUpLink));
        $mainCenterColumnContent .= $welcomeParagraph->output();

//        $featureGamesHeading = new htmlcodemaker('h2');
//        $featureGamesHeading->set('text', "Current Live Games");
//        $mainCenterColumnContent .= $featureGamesHeading->output();

        return $mainCenterColumnContent;
    }

    /**
     * \brief Builds html content for the center column on the main page
     * return Return one side link item
     */
    private function buildAboutPageCenterColumnContent() {
        $welcomeHeading = new htmlcodemaker('h2');
        $welcomeHeading->set('text', "Welcome to Dazzler");
        $aboutCenterColumnContent = $welcomeHeading->output();

        $welcomeText = new htmlcodemaker('text');
        $welcomeText->set('text', "Dazzler is a software system which will allow you to view live ball-by-ball cricket scores, statistics and commentary.
            This software is named after Dazzler the Zebra which was the official mascot of the 2003 ICC World Cup
held in South Africa.
");




        $welcomeParagraph = new htmlcodemaker('p');
        $welcomeParagraph->set('align', "justify");
        $welcomeParagraph->inject(array($welcomeText));
        $aboutCenterColumnContent .= $welcomeParagraph->output();

        $briefDescrpHeading = new htmlcodemaker('h2');
        $briefDescrpHeading->set('text', "Description");
        $aboutCenterColumnContent .= $briefDescrpHeading->output();

        $breifDescriptionText = new htmlcodemaker('text');

        $breifDescriptionText->set('text', "Dazzler allows spectators of a Cricket match such as
commentators to insert live ball by ball statistics into a user friendly GUI interface. Dazzler also
has the ability to allow numerous client users or cricket fans to connect to Dazzler to view live cricket stats. Dazzler is a live
software system. As soon as the spectators insert any data, it will automatically register on all the
client connections. The spectator side will allow a spectator or commentator to add various different kinds of data.
However, multiple spectators cannot insert the same kind of data. This data includes the type of ball bowled,
what type of shot was played, how many runs were made in that ball, general commentary and many more
data options. Dazzler intelligently interprets the data inserted and update the live stats
accordingly on the cricket fan side.");

        $briefDescrpParagraph = new htmlcodemaker('p');
        $briefDescrpParagraph->set('align', "justify");
        $briefDescrpParagraph->inject(array($breifDescriptionText));
        $aboutCenterColumnContent .= $briefDescrpParagraph->output();

        $operationalReqHeading = new htmlcodemaker('h2');
        $operationalReqHeading->set('text', "Operational Requirements");
        $aboutCenterColumnContent .= $operationalReqHeading->output();

        $operationReqText = new htmlcodemaker('text');

        $operationReqText->set('text', "Dazzler initiates a long polling connection when you
            are view live game statistics. A persistance internet connection is required when
            view live ball-by-ball statistics. Graphical data and ball trajectories on drawn
            using HTML5 canvas. A HTML5 compliant browser with full canvas functionality is required. A list of
            HTML5 compliant browsers are listed below.
            <ul>
<li>Google Chrome 4 and above</li>
<li>Apple Safari 3.5 and above</li>
<li>Mozilla Firefox 3.63</li>
<li>Opera 9.63 and above</li>
<li>Internet Explorer 9</li>
</ul>");

        $operationalReqParagraph = new htmlcodemaker('p');
        $operationalReqParagraph->set('align', "justify");
        $operationalReqParagraph->inject(array($operationReqText));
        $aboutCenterColumnContent .= $operationalReqParagraph->output();


        $licenseHeading = new htmlcodemaker('h2');
        $licenseHeading->set('text', "Software License");
        $aboutCenterColumnContent .= $licenseHeading->output();

        $lisenceText = new htmlcodemaker('text');
        $lisenceText->set('text', "<p>Dazzler is developed under the <a class='signup_link' target='_blank' href='http://www.opensource.org/licenses/bsd-license.php'>
New BSD License</a>.</p>
<p>Copyright (c) 2011, Dazzler All rights reserved.</p>
<p align='justify'>Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
</p>
<ul>
    <li> Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    </li><li> Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.
     </li><li> Neither the name of the <organization> nor the
      names of its contributors may be used to endorse or promote products
      derived from this software without specific prior written permission.
       </li>
</ul>
<p align='justify'>
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. </p>");

        $licenseParagraph = new htmlcodemaker('p');
        $licenseParagraph->set('align', "justify");
        $licenseParagraph->inject(array($lisenceText));
        $aboutCenterColumnContent .= $licenseParagraph->output();

        return $aboutCenterColumnContent;
    }

   
     /**
     * \brief Builds html content for the center column on the terms page
     * return Return one side link item
     */
    private function buildTermsCenterColumnContent()
    {
        $termsHeading = new htmlcodemaker('h2');
        $termsHeading->set('text', "Terms and Conditions of Use");
        $termsCenterColumnContent = $termsHeading->output();

        $intoText = new htmlcodemaker('text');
        $intoText->set('text',"<p align='justify'>These terms and conditions govern your use of our website. Our terms have been provided and approved by legal documents provider LegalCentre.co.uk. Please read the terms in full before you use this Website. If you do not accept these terms, please do not use this Website. Using the Website implies that you accept these terms.   We do occasionally update these terms so please refer back to them in the future.</p>");
        $termsCenterColumnContent .= $intoText->output();
        
        $siteAccessHeading = new htmlcodemaker('h3');
        $siteAccessHeading->set('text', "Site Access");
        $termsCenterColumnContent .= $siteAccessHeading->output();

          $orderlistText1 = new htmlcodemaker('text');
          $orderlistText1->set('text',"<ol><li>You will be able to access the majority of this Website without having to register any details with us. [However, particular areas of this Website will only be accessible only if you have registered.]</li></ol>");
          $termsCenterColumnContent .= $orderlistText1->output();

        $useHeading = new htmlcodemaker('h3');
        $useHeading->set('text', "Use of Website");
        $termsCenterColumnContent .= $useHeading->output();

         $orderlistText2 = new htmlcodemaker('text');
          $orderlistText2->set('text',"<ol start='2'><li>You are permitted to use our website for your own purposes and to print and download material from this Website provided that you do not modify any content without our consent. Material on this website must not be republished online or offline without our permission.</li>
              <li>The copyright and other intellectual property rights in all material on this Website are owned by us or our licensors and must not be reproduced without our prior consent. </li>
              <li>Subject to paragraph 2, no part of this Website may be reproduced without our prior written permission. </li></ol>");
          $termsCenterColumnContent .= $orderlistText2->output();

        $uptimeHeading = new htmlcodemaker('h3');
        $uptimeHeading->set('text', "Site Uptime");
        $termsCenterColumnContent .= $uptimeHeading->output();

                 $orderlistText3 = new htmlcodemaker('text');
          $orderlistText3->set('text',"<ol start='5'><li>We take all reasonable steps to ensure that this Website is available 24 hours every day, 365 days per year. However, websites do sometimes encounter downtime due to server and, other technical issues. Therefore we will not be liable if this website is unavailable at any time.</li>
              <li>This Website may be temporarily unavailable due to issues such as system failure, maintenance or repair or for reasons beyond our control. Where possible we will try to give our visitors advance warning of maintenance issues but shall not be obliged to do so.  </li>
             </ol>");
             $termsCenterColumnContent .= $orderlistText3->output();

        $visitorHeading = new htmlcodemaker('h3');
        $visitorHeading->set('text', "Visitor Conduct");
        $termsCenterColumnContent .= $visitorHeading->output();

          $orderlistText4 = new htmlcodemaker('text');
          $orderlistText4->set('text',"<ol start='7'><li>With the exception of personally identifiable information, the use of which is covered under our Privacy Policy, any material you send or post to this Website shall be considered non-proprietary and not confidential. Unless you advise to the contrary we will be free to copy, disclose, distribute, incorporate and otherwise use such material for any and all purposes.  </li>
              <li>When using this website you shall not post or send to or from this Website any material:</li>
              <ol type='a'>
                <li>for which you have not obtained all necessary consents;</li>
                <li>that is discriminatory, obscene, pornographic, defamatory, liable to incite racial hatred, in breach of confidentiality or privacy, which may cause annoyance or inconvenience to others, which encourages or constitutes conduct that would be deemed a criminal offence, give rise to a civil liability, or otherwise is contrary to the law in South Africa; </li>
               <li>which is harmful in nature including, and without limitation, computer viruses, Trojan horses, corrupted data, or other potentially harmful software or data;</li>

</ol>
<li>[We will fully co-operate with any law enforcement authorities or court order requiring us to disclose the identity or other details of any person posting material to this website in breach of Paragraph 8.]</li>
</ol>");
             $termsCenterColumnContent .= $orderlistText4->output();

          
        
        //  $termsCenterColumnContent .= "</ol>";
        return $termsCenterColumnContent;
    }

      /**
     * \brief Builds html content for the center column on the terms page
     * return Return one side link item
     */
    private function buildPrivacyCenterColumnContent()
    {
                  $PrivacyContent = new htmlcodemaker('text');
                  $PrivacyContent->set('text',"<h3>Dazzler Privacy Policy</h3>
<p>
Dazzler (&quot;Dazzler&quot;) shares your concerns about the protection of your personal information online. This Privacy Policy (&quot;Policy&quot;) describes our practices regarding the collection and use of information through our website, located at www.dazzler.co.za and any of our micro sites, applications, widgets, and any web pages (collectively, the &quot;Site&quot;). By using the Site or obtaining any product or service through this Site, you agree to the collection and use of information as set forth in this Policy. If you do not agree to this Policy, please do not use the Site.
</p><p>
We may, from time-to-time, update this Policy. We will notify you of changes to the Policy by posting the updated Policy on this page. We ask that you bookmark and periodically review this page to ensure continuing familiarity with the most current version of the Policy. You can determine when this Policy was last revised by checking the legend at the bottom of the Policy.
</p><p>
<b>What Information We Collect and How It's Used</b><br />

Profiles and Questionnaires<br />
Dazzler collects a wide variety of information which is used in order to find matches which offer the highest possible chance of finding a successful friendship match, dating partner, long-term relationship or marriage. Information collected by Dazzler as part of the questionnaire used by the matching system or personality profile may be made accessible to the public, other users of the site or anyone not employed by Dazzler. This information shall be deleted upon reasonable request by the user or representative of a user.
</p><p>
By using Dazzler, you agree to allow us to anonymously use the information from you and your experiences through dazzler to continue our research into successful relationships. This research may be published or used by others deemed appropriate by Dazzler, however, all of your responses will be kept anonymous, and in such cases, no personal identifying information will ever be published.
</p><p>
Information We Collect From You<br />
In order to operate the Site and to provide you with information about products or services that may be of interest to you, we may collect &quot;personal information&quot; (i.e. information that could be used to contact you directly without using the Site such as full name, postal address, phone number or email address), &quot;financial information&quot; (i.e. credit card numbers or passwords) or &quot;demographic information&quot; (i.e. information that you submit, or that we collect, that is neither personal information nor financial information; this may include, but is not limited to, zip code, postal code, hometown, gender, username, age/birth date, purchase history information, browsing history information, searching history information, registration history information, and the content of communications between you and other members over the Site), subject to the rest of this paragraph. Demographic information is divided into two categories: 1) &quot;non-public information,&quot; which consists of purchase history information and one-on-one communications between you and other users of the Site; and 2) &quot;public information&quot;, which consists of all other demographic information. We ask that you do not enter personal information or financial information into your &quot;Profile&quot; (for example, don't use your address or passcode as your username, or include your full name or address in your written responses), because if you do then it may be posted publicly on the Site, and the information will then be treated as &quot;demographic information&quot; that is &quot;public information.&quot; Please note that nowhere on the Site do we knowingly collect personal information from children under the age of 18, as we require that all users represent to us that they are at least 18 years old.

</p><p>
Dazzler may choose to offer subscriber-based services to users, as well as offering products for retail sale. To process such subscriptions and/or product purchases, we may require your name, billing address, phone number, email address, shipping address and credit card information. Information gathered during product purchases is used primarily to process your order or as otherwise described herein. In general, you will receive one email notification that you have placed an order, and another email notification that your order has been filled. You will be similarly notified of subscription renewal transactions when they occur. Email contact Information provided by you is also used primarily to notify you of potential match candidates identified by Dazzler based on your matching criteria and profile. Once you begin Dazzler's registration process, we may also occasionally send you newsletters and email you notifications of special events or product offerings at Dazzler. If you have started, but not completed, the registration process, we may also send you email messages encouraging you to complete the process and become a subscriber. All of the email messages we send you may contain information on how to &quot;Opt Out&quot; or &quot;unsubscribe&quot;
</p><p>
Demographic and profile data is also collected at our site. We use this data to tailor our visitor's experience at our site, showing them content that we think they might be interested in, and displaying the content according to their preferences. Some of this information (i.e., customer demographic information) may be shared with advertisers on an aggregate, non personally identifiable basis.
</p><p>
Advertisements, promotions and offers from third-party advertisers may be provided to you while you are visiting the Dazzler web site. If you choose to accept any such offers, Dazzler may provide your information, including billing information, to the advertiser.
</p><p>
When purchasing a Dazzler subscription, advertisements, and promotions, offers from third-party advertisers may be provided to you. If you choose to accept any such offers, Dazzler will provide your information, including billing information, to the advertiser by pre-populating the offer registration forms. Your information will not be transferred until you accept the offer and grant permission for such information transfer.
</p><p>As we develop our business, we may buy or sell assets and, depending on the transaction, your personally identifiable information may be one of the transferred assets. In the event that we are acquired by another company, your personal information may be part of the assets transferred to the acquiring party.
</p><p>
Credit card transactions are processed through industry standard secure socket layer encryption by a third party (PayFast), which only uses your information for that purpose.
</p><p>

We will only share your information with third-parties in the ways defined in this privacy statement.
</p><p>
Information Other Websites Collect From You<br />
On the Site, we place links to other Websites operated by other parties. Some of these other Websites contain our brand names and trademarks and other intellectual property that we own; others do not. When you click on these links and visit these other Websites, regardless of whether or not they contain our brand names, trademarks and other intellectual property, you need to be aware that we do not control these other Websites or these other Websites' business practices, and that this privacy policy does not apply to these other Websites. Consequently, the operators of these other Websites may collect different kinds of information about you, and may use and disclose that information in different ways than we would if it were collected on the Site. We encourage you to review their privacy policies and remind you that we will not be responsible for their actions.
</p><p>
Information Supplied by Your Browser<br />
Dazzler also logs IP addresses for systems administration purposes. IP addresses are logged to track a user's session. This gives Dazzler an idea of which parts of our Site users are visiting. We do not link IP addresses to anything personally identifiable. This means that a user's session will be tracked, but the user will be anonymous.
</p><p>
Our Site uses cookies to keep track of some types of information while you are visiting or using Dazzler. Cookies are very small files placed on your computer, so that when you return to Dazzler we can identify you. Cookies are needed for the Dazzler site to operate properly. If your browser is set to reject all cookies, the Site will not function properly.
</p><p>
Third-Party Advertising<br />
We may use third-party advertising agencies to serve ads on behalf of Dazzler or third-party advertisers (e.g., retailers of goods or services). These companies may employ cookies and action tags (also known as single pixel gifs or web beacons) to measure advertising effectiveness. Any information that these third parties collect via cookies and action tags is completely anonymous.
</p><p>
Legal Disclaimer
Though we make every effort to preserve user privacy, we may disclose information you provide if required to do so by law or if we have a good faith belief that disclosure is necessary to (1) comply with the law or with legal process served on us; (2) protect and defend our rights or property; (3) act in an emergency to protect someone's safety or (4) as expressly provided herein.

</p><p>
Age Restrictions<br />
Dazzler will not create matches for anyone under the age of 18. All adults are welcome to explore the Site, complete the Profile Questionnaire and obtain a Personality Profile. As per our own policies, any information we receive from people we believe to be minors will be purged from our database.
</p><p>
Refer a Friend<br />
Dazzler encourages you to refer a friend or friends to this service. In this section you are able to send us a friend's name and email address. We will send that person an &quot;once-off&quot; email containing your name and inviting them to visit our Site.
</p><p>
Public Forums<br />
Dazzler makes message boards available to its users and visitors. Please remember that any information that is disclosed in these areas becomes public information and you should exercise caution when deciding to disclose any personally identifying information.
</p><p>
Policies and Remedies Links to Other Sites<br />

Dazzler is not responsible for the privacy practices or the content of other websites that may be linked to this Site or of any third party advertisers.
</p><p>
Correct/Update<br />
Dazzler provides users the following options for changing and modifying information previously submitted.
</p><p>
Users may change their credit card, password and other information by visiting your Account information page on the Dazzler Site.
You can send email to support@dazzler.co.za.
</p><p>
If you have any questions about this privacy statement, the practices of this site, or your dealings with the Dazzler Site, you can contact:
Site Administrator <br />
Dazzler <br />
Chamber of Mines <br />
University of Witwatersrand, <br />
JHB, Gatueng, <br />
South Africa <br />
support@dazzler.co.za
</p><p>
Acceptance of Privacy Statement<br />
Your use of our Site, including any dispute concerning privacy, is subject to this privacy statement and the Terms and Conditions of Service. BY USING OUR SITE, YOU ARE ACCEPTING THE PRACTICES SET OUT IN THIS PRIVACY POLICY AND OUR TERMS AND CONDITIONS OF SERVICE.
</p><p>
If we decide to change our privacy policy, we will post those changes to this privacy statement page and any other places we deem appropriate so that you are aware of what information we collect, how we use it, and under what circumstances, if any, we disclose it. We reserve the right to modify this privacy statement at any time, so please review it frequently. If we make material changes to this policy, we will notify you here, or by other means, such as email, at our discretion.
</p><p>
Your continued use of any portion of our Site following posting of the updated privacy statement will constitute your acceptance of the changes.
</p><p>
Effective Date<br />
This privacy policy was last revised on 20/09/2011.

</p>");

                  return $PrivacyContent->output();
    }

     /**
     * \brief Builds html content for the center column on the terms page
     * return Return one side link item
     */
    public function buildContactCenterColumnContent()
    {
        $contactHeading = new htmlcodemaker('h2');
        $contactHeading->set('text', "Contact Details");
        $contactCenterColumnContent = $contactHeading->output();

        $contactText = new htmlcodemaker('text');
        $contactText->set('text','<p>Tell us what you think about Dazzler. Any compliments, suggestions or ciritisms are greatly welcome.</p>');
        $contactCenterColumnContent .= $contactText->output();

        $contactTable = new htmlcodemaker('text');
        $contactTable->set('text','
            				<table width="100%" cellpadding="5" cellspacing="0">
					<tr>
						<th align="left">Name</th>
						<th width="170">Position</th>
						<th width="170">Email</th>

					</tr>
					<tr bgcolor="#F3F3F3">
						<td>Stephen Levitt</td>
						<td>Supervisor</td>
						<td><a class="contact_link" href="mailto:stephen.levitt@wits.ac.za">stephen.levitt@wits.ac.za</a></td>


					</tr>
					<tr>
						<td>Salman Noor</td>
						<td>Front End Developer</td>
						<td><a class="contact_link" href="mailto:salmannoor74415@gmail.com">salmannoor74415@gmail.com</a></td>
					</tr>
					<tr bgcolor="#F3F3F3">
						<td>Thato Selebogo</td>
						<td>Back End Developer</td>
						<td><a class="contact_link" href="mailto:mahlatst@gmail.com">mahlatst@gmail.com</a></td>
					</tr>
					<tr>
						<td>Armond Furmie</td>
						<td>Graphics and Web Designer</td>
						<td><a class="contact_link" href="mailto:armond.furmie@wits.ac.za">armond.furmie@wits.ac.za</a></td>

					</tr>
				</table><br><br>');
       $contactCenterColumnContent .= $contactTable->output();
        $sourceCodeText = new htmlcodemaker('text');
        $sourceCodeText->set('text',"Take a look at our source code on the <a target='_blank' class='contact_link' href='http://code.google.com/p/dazzler/'>Google Code Repository</a>.");
        $contactCenterColumnContent .= $sourceCodeText->output();
        
 
        return $contactCenterColumnContent;
    }

    private function buildCommentatorBox($picPath,$href,$commentatorName,$commentatorLocation)
    {
     return $picBox .=     "<div class='box'>
    <a href='#$href'>
    <img src=$picPath>
    <span class='profilecaption'>$commentatorName</span>
    <span class='citybox'>$commentatorLocation</span>
    </a>
    </div>";
    }


    private function buildListOfCommentatorsColumnContent()
    {
       $centerContent = NULL;
        $parseSiteConfig = new parsesiteconfig();
        $rootpath = $parseSiteConfig->getRootPath();
        $loadType = $parseSiteConfig->getLoadType();

        $salmanpic = "$rootpath/themes/$loadType/custom/images/commentatorpics/salman.jpeg";
         $thatopic = "$rootpath/themes/$loadType/custom/images/commentatorpics/thato.jpeg";
         $levittpic = "$rootpath/themes/$loadType/custom/images/commentatorpics/levitt.jpeg";
         $ramizpic = "$rootpath/themes/$loadType/custom/images/commentatorpics/ramiz.jpeg";
         $ravipic = "$rootpath/themes/$loadType/custom/images/commentatorpics/ravi.jpeg";
         $nasserpic = "$rootpath/themes/$loadType/custom/images/commentatorpics/nasser.jpeg";
         $ianpic = "$rootpath/themes/$loadType/custom/images/commentatorpics/ian.jpeg";
         $billpic = "$rootpath/themes/$loadType/custom/images/commentatorpics/bill.jpeg";
         $richiepic = "$rootpath/themes/$loadType/custom/images/commentatorpics/richie.jpeg";
         $nophoto = "$rootpath/themes/$loadType/custom/images/commentatorpics/nophoto_male.jpg";
        $centerContent .= "<h2>Commentators</h2>";
        $centerContent .= $this->buildCommentatorBox($salmanpic, "salmannoor", "Salman Noor", "South Africa");
        $centerContent .= $this->buildCommentatorBox($thatopic, "thatoselebogo", "Thato Selebogo", "South Africa");
        $centerContent .= $this->buildCommentatorBox($levittpic, "stephenlevitt", "Stephen Levitt", "South Africa");
        $centerContent .= $this->buildCommentatorBox($ramizpic, "ramizraja", "Ramiz Raja", "Pakistan");
        $centerContent .= $this->buildCommentatorBox($ravipic, "ravishastri", "Ravi Shastri", "India");
        $centerContent .= $this->buildCommentatorBox($nasserpic, "nasserhussain", "Nasser Hussain", "England");
        $centerContent .= $this->buildCommentatorBox($ianpic, "ianbishop", "Ian Bishop", "West Indies");
        $centerContent .= $this->buildCommentatorBox($billpic, "billlawry", "Bill Lawry", "England");
        $centerContent .= $this->buildCommentatorBox($richiepic, "richiebenaud", "Richie Benaud", "Australia");
        $centerContent .= $this->buildCommentatorBox($nophoto, "commentator", "Commentator", "Country");

  return $centerContent;
    }


    public function showListOfCommentatorsColumnContent()
    {
        return $this->buildListOfCommentatorsColumnContent();
    }

    /**
     * \brief This function builds html content for the center column content for the main page
     * \return This returns  html content for the center column content for the main page
     */
    public function showMainCenterColumnContent() {
        return $this->buildMainCenterColumnContent();
    }

    /**
     * \brief This function builds html content for the center column content for the main page
     * \return This returns  html content for the center column content for the main page
     */
    public function showAboutPageCenterColumnContent() {
        return $this->buildAboutPageCenterColumnContent();
    }

     /**
     * \brief This function builds html content for the center column content for the terms page
     * \return This returns  html content for the center column content for the terms page
     */
    public function showTermsPageCenterColumnContent() {
        return $this->buildTermsCenterColumnContent();
    }

      /**
     * \brief This function builds html content for the center column content for the privacy page
     * \return This returns  html content for the center column content for the privacy page
     */
    public function showPrivacyPageCenterColumnContent() {
        return $this->buildPrivacyCenterColumnContent();
    }

     /**
     * \brief This function builds html content for the center column content for the contact page
     * \return This returns  html content for the center column content for the contact page
     */
    public function showContactPageCenterColumnContent() {
        return $this->buildContactCenterColumnContent();
    }

}